package com.cy.demo.service;

import com.cy.demo.pojo.User;
import org.apache.ibatis.annotations.Update;

import java.util.Date;

public interface IUserService {
    User findByUsername(String username);

    void reg(User user);

     User login(String username,String passwrod);

     void updatePassword(String username,String oldPassword,String newPassword);

    User getByUid(Integer uid);

    void updateInfo( Integer id, String phone, String email,Integer gender);

    void updateAvatarByUid( Integer uid, String avatar, String modifiedUser);
}
